package com.ynny.service;

import com.ynny.bean.Score;
import com.ynny.bean.Selectt;
import com.ynny.dao.CourseDao;
import com.ynny.dao.ScoreDao;
import com.ynny.dao.SelecttDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.chrono.IsoChronology;

@Service
public class LgoinImpl implements Lgoin {
    @Autowired
    CourseDao courseDao;
    @Autowired
    ScoreDao scoreDao;
    @Autowired
    SelecttDao selecttDao;


    @Override
    public Boolean login(String number, String password, String identity) {
        if (identity.equals("admin")) {
            if (number.equals("admin") && password.equals("123456")) {
                return true;
            } else {
                return false;
            }

        }


        return null;
    }
}